package com.example.xjt.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class MsgEventListener {

    @EventListener(MsgEvent.class)
    public void consumer(MsgEvent msgEvent) {
        log.info("trigger event by @anno: " + msgEvent);
    }
}
